export default class Storage {
    constructor() {
        if (Storage.instance) {
            return Storage.instance;
        }
        Storage.instance = this;
        this.dataSet = {}

    }

    set(key,val) {
        try {
            this.dataSet[key] = val
        }
        catch (e) {
            console.error(e.message())
        }
    }

    get(key) {
        return this.dataSet[key]
    }





}
